package com.alks.function.mapper.stockdept.pcfactorystockquery;


import com.alks.entity.data.entity.MpMtlSub;
import com.alks.entity.data.entity.MpPurDis;
import com.alks.function.data.dto.procurement.FdMtlSubDto;
import com.alks.function.data.dto.stockdept.pcfactorystockwork.FdMtlSumDto;
import com.alks.function.data.request.stockdept.pcfactorystockwork.MtlSumUpRequest;
import com.alks.function.data.request.stockdept.pcfactorystockwork.MyOrdUpRequest;
import com.alks.function.data.request.stockdept.pcfactorystockwork.PurDisAddRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-11-18
 */
public interface SD_SQ_MpMtlSubMapper extends BaseMapper<MpMtlSub> {
    /*新增贴合子材料*/
    void fdPurDisAdd(@Param("request") List<PurDisAddRequest> request);

    /*查询贴合子材料*/
    List<FdMtlSumDto> getFdMtlSumQuery(@Param("reqNo") String reqNo, @Param("purLot") String purLot, @Param("mtlNo") String mtlNo);

    /*查询贴合子材料tguoMTLno批量*/
    List<FdMtlSubDto> getBatchFdMtlSumQuery(@Param("reqNo") String reqNo, @Param("purLot") String purLot, @Param("mtlNoList") List<String> mtlNo,@Param("companyId") String companyId);


    /*形成订购单更新数量*/
    void creatPurUpdate(@Param("request") List<MyOrdUpRequest> request);

    /*出库批处理*/
    void fdMtlSumUpdate(@Param("request") List<MtlSumUpRequest> request, @Param("slipNo") String slipNo);

    /*取消出库*/
    void fdMtlSumCancel(@Param("slipNo") String slipNo);

    /*更新批处理*/
    void fdMtlSumUpdate1(@Param("request") List<MtlSumUpRequest> request);

    /**
     * 贴合退库
     */
    void purBack(@Param("dis") MpPurDis dis);
}
